package com.etxxy.web.security;

import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
import org.apache.shiro.cache.CacheManager;

/**
 * @category cacheManager代理
 *
 */
public class ProxyCacheManager implements CacheManager {
	
	private CacheManager targetCacheManager;

	@Override
	public <K, V> Cache<K, V> getCache(String arg0) throws CacheException {
		return targetCacheManager.getCache(arg0);
	}

	public CacheManager getTargetCacheManager() {
		return targetCacheManager;
	}

	public void setTargetCacheManager(CacheManager targetCacheManager) {
		this.targetCacheManager = targetCacheManager;
	}

	

}
